package com.example.yimai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yimai.entity.Address;

import java.util.List;
import java.util.Map;

public interface AddressService extends IService<Address> {

    public String addAddress(String token, Map<String, Object> params);

    public String deleteAddress(Integer id);

    public String updateAddress(Map<String, Object> params);

    public Address getAddress(Integer id);

    public List<Address> getAllAddress(String token);

    public String setDefault(String userId, String addressId);

    public Address getDefaultAddress(String userId);
}
